package com.itqf.yun.service.impl;


import com.itqf.yun.dto.SelectDto;
import com.itqf.yun.mapper.SelectMapper;
import com.itqf.yun.pojo.Product;
import com.itqf.yun.pojo.Select;
import com.itqf.yun.service.SelectService;
import com.itqf.yun.vo.R;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SelectServiceImpl implements SelectService {
    @Autowired
    private SelectMapper selectMapper;
    /**
     * 模糊查询
     * @param
     * @return
     */
    @Override
    public R find(String pname) {

        List<Product> selects = selectMapper.findlists(pname);

        return R.OK("查询成功",selects);
    }
}
